﻿using System;
using System.Windows.Forms;

namespace TextEditor
{
  

    public class A_Copy : A_Action
    {
        public A_Copy()
        {
            base.HotKey = Keys.Control | Keys.C;
        }

        public override string ActionName()
        {
            return "copy";
        }

        public override bool Execute()
        {
            base.myOwnerDocument._Copy();
            return true;
        }

        public override bool isEnable()
        {
            return base.myOwnerDocument.Content.HasSelectedText();
        }
    }
}

